package com.company.cloud.mall.modules.app.controller.req;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class OrderSaveProductItem {

    @ApiModelProperty(value = "商品编号", required = true)
    @NotEmpty(message = "#商品编号不能为空")
    private String productNo;

    @ApiModelProperty(value = "SKU商品号", required = true)
    @NotEmpty(message = "#SKU商品号不能为空")
    private String skuNo;

    @ApiModelProperty(value = "裱框编号")
    private String frameNo;

    @ApiModelProperty(value = "扩展信息1")
    private String extendOne;

    @ApiModelProperty(value = "扩展信息2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展信息3")
    private String extendThree;

    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "#数量不能为空")
    private Integer quantity;

    @ApiModelProperty(value = "购物车ID")
    private Integer cartId;

    public OrderSaveProductItem(String productNo, String skuNo, String frameNo, Integer quantity, Integer cartId) {
        this.productNo = productNo;
        this.skuNo = skuNo;
        this.frameNo = frameNo;
        this.quantity = quantity;
        this.cartId = cartId;
    }

    public OrderSaveProductItem() {

    }

}
